package lib.self;

import android.content.Context;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import lib.self.utils.DeviceUtil;

/**
 * description: 基本数据
 * author: Steven Xiao
 * date: 2017/4/24
 */
public class ConstEx {
    public static final int KInvalidValue = -999; //无效值
    public static final int KErrNotFound = -1;
    public static final String KEmptyValue = "";

    public static final String KAndroid = "android";

    public static final int KAlphaMax = 255;
    public static final int KAlphaMin = 0;
    // 魅族品牌
    public static final String KBrandMeiZu = "Meizu";

    /**
     * fresco加载资源文件的前缀
     */
    public static String getResPrefix(Context context) {
        return "res://" + DeviceUtil.getAppPackageName(context) + "/";
    }

    /**
     * 列表
     */
    public class ListConstEx {
        public static final int KDefaultLimit = 10;
        public static final int KDefaultOffset = 0;
    }

}
